using System;

namespace MathService.Tasks
{
    public interface ITask
    {
        event EventHandler Started;
        event EventHandler Complited;
        event ExceptionEventHandler<Exception> Error;

        DateTime? StartTime { get; }
        DateTime? CompliteTime { get; }

        void Execute();
    }
}